@echo off
cls
echo Mi-DevEnv setup SysPrep trigger
echo -------------------------------
echo.

echo Install: .NET Framework 3.5
DISM.exe /online /enable-feature /featurename=NetFx3

echo.
echo Install: PowerShell
DISM.exe /online /enable-feature /featurename=ActiveDirectory-PowerShell

echo.
echo WARNING: Setting PowerShell execution policy to BYPASS
"%SYSTEMROOT%\system32\windowspowershell\v1.0\powershell.exe" Set-ExecutionPolicy -ExecutionPolicy ByPass -Force

echo Import registry settings to trigger SysPrep
"%SYSTEMROOT%\system32\windowspowershell\v1.0\powershell.exe" %~dp0MDE-SetTrigger.ps1

